import type { Response_Dto } from "@/Dto/Response/Api_Result";
import {ElMessage,ElNotification} from 'element-plus'


export const msg = (response: Response_Dto) => {
    if (response.code === 0)
        ElNotification({
            title:'OK',
            message:response.message,
            type: 'success',
            duration:1500
        })
    else
    ElNotification({
        title:'Fail',
        message:response.message,
        type: 'error',
        duration:1500
    })
    
}